<template>
    <div class="account">
        <iframe  style="height:100vh;" ref="iframe" :src="ifarmeSrc" frameborder="0" width="100%" scrolling="no" id="bdIframe" ></iframe>
    </div>
</template>
<script>
export default {
    data(){
        return{
            ifarmeSrc:'',
            companyList:[],
        }
    },
    created(){
        this.ifarmeSrc = process.env.VUE_APP_BASE_URL_WINNER_URL + 'check/Info';
    },
    methods:{
        initIframe(){
            // let oIframeDom = document.getElementById('bdIframe');
            // const deviceHeight = document.documentElement.clientHeight;
            // oIframeDom.style.height = (Number(deviceHeight)-120) + 'px'; //数字是页面布局高度差
        },
    },
    mounted(){
        this.initIframe();
        let that = this;
        window.onresize = function(){
            that.initIframe();
        }  
    },
    
}
</script>
<style scoped>
    .account{
        width: 100%;
        height: auto;
    }
</style>